package br.com.mundodaprata.store.data;

import java.util.List;

public interface Repository<T> {
   
   void insert(T... elements) throws Exception;
   
   void update(T... elements) throws Exception;
   
   void remove(T... elements) throws Exception;
   
   void closeConnection();
   
   T select(Long key);
   
   List<T> all();
   
}